package org.dromara.xhlj.domain.vo;

import org.dromara.xhlj.domain.XhljParticipants;
import org.dromara.xhlj.domain.XhljConferenceInfo;
import org.dromara.xhlj.domain.XhljActivityAgendaParticipants;
import org.dromara.xhlj.domain.XhljPoster;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 参会人员视图对象 xhlj_participants
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljParticipants.class)
public class XhljParticipantsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 参会人员id
     */
    @ExcelProperty(value = "参会人员id")
    private Integer participantsId;
    /**
     * 参会人员名称
     */
    @ExcelProperty(value = "参会人员名称")
    private String participantsName;
    /**
     * 大会id
     */
    @ExcelProperty(value = "大会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljConferenceInfo.TRANS_ID_TO_VO, mapper = "conferenceInfoId")
    private XhljConferenceInfoVo conferenceInfo;
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @ExcelProperty(value = "创建人sys_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = SysUser.TRANS_ID_TO_VO, mapper = "createBy")
    private SysUserVo sysUser;
    private Integer createBy;
    /**
     * 参会人员职务
     */
    @ExcelProperty(value = "参会人员职务")
    private String participantsPosition;
    /**
     * 参会人员头像
     */
    @ExcelProperty(value = "参会人员头像")
    private String participantsAvatar;
    /**
     * 参会人员性别（0=男，1=女）
     */
    @ExcelProperty(value = "参会人员性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "participants_sex")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "participants_sex", mapper = "participantsSex")
    private String participantsSexDictData;
    private String participantsSex;
    /**
     * 参会人员年龄
     */
    @ExcelProperty(value = "参会人员年龄")
    private Integer participantsAge;
    /**
     * 参会人员电话
     */
    @ExcelProperty(value = "参会人员电话")
    private String participantsPhone;
    /**
     * 参会人员邮箱
     */
    @ExcelProperty(value = "参会人员邮箱")
    private String participantsEmail;
    /**
     * 参会人员描述
     */
    @ExcelProperty(value = "参会人员描述")
    private String participantsContent;
    /**
     * 参会人员个人成就
     */
    @ExcelProperty(value = "参会人员个人成就")
    private String participantsAchievement;
    /**
     * 参会人员类型（0=演讲人，1=主持人，2=技术顾问，3=嘉宾，4=大会联系人）
     */
    @ExcelProperty(value = "参会人员类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "participants_type")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "participants_type", mapper = "participantsType")
    private String participantsTypeDictData;
    private String participantsType;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 参会人员议程安排 子列表
     */
    @JsonIgnore
    @Translation(type = XhljActivityAgendaParticipants.TRANS_ID_TO_VO_LIST, mapper = "participantsId" , other = "participants_id")
    private List<XhljActivityAgendaParticipantsVo> xhljActivityAgendaParticipantsVoList;
    /**
     * 大会海报 子列表
     */
    @JsonIgnore
    @Translation(type = XhljPoster.TRANS_ID_TO_VO_LIST, mapper = "participantsId" , other = "participants_id")
    private List<XhljPosterVo> xhljPosterVoList;
}
